package by.dkusch.aircompany.webapp.page.main;

import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;

import by.dkusch.aircompany.webapp.app.BasicAuthenticationSession;
import by.dkusch.aircompany.webapp.page.base.BaseLayout;

public class HomePage extends BaseLayout {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	protected IModel<String> getPageTitle() {
		return new ResourceModel("p.home.title");
	}

	@Override
	protected void onInitialize() {
		super.onInitialize();
	}

	@Override
	protected void onConfigure() {
		super.onConfigure();
		if (!BasicAuthenticationSession.get().isSignedIn()) {
			setResponsePage(LoginPage.class);
			return;
		}

	}
}
